package com.teemor.blog.api;

import com.teemor.blog.bean.dto.input.comment.AddCommentIDTo;
import com.teemor.blog.bean.dto.input.comment.QryCommentsIDTo;
import com.teemor.blog.bean.dto.input.comment.UpdCommentIDTo;
import com.teemor.blog.bean.dto.output.comment.QryCommentODTo;
import com.teemor.blog.bean.dto.output.comment.QryCommentsODTo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author: zhoulk
 * @Description: 原子服务API接口
 * @date: 2019/11/26 14:50:14
 */
@Api(value = "原子服务API接口", description = "原子服务API接口")
@RequestMapping(value = "/comment")
public interface ICommentApiService {
     /** 
   * @Function: com.teemor.blog.service.ICommentApiService.qryCommentById
   * @Description: 根据主键查询
   * @param: commentId
   * @return: QryCommentODTo
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    @RequestMapping(value = "/qryComment/{commentId}", method = RequestMethod.GET)
    @ApiOperation(value = "ICommentApiService.qryComment", notes = "根据主键查询接口 - zhoulk")
    QryCommentODTo qryComment(@PathVariable Integer commentId);

     /** 
   * @Function: com.teemor.blog.service.ICommentService.countComment
   * @Description: 统计条数
   * @param: inParam
   * @return: int
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    @RequestMapping(value = "/countComment", method = RequestMethod.GET)
    @ApiOperation(value = "ICommentApiService.countComment", notes = "数量统计接口 - zhoulk")
    int countComment(@RequestBody QryCommentsIDTo inParam);

     /** 
   * @Function: com.teemor.blog.service.ICommentService.qryComments
   * @Description: 查询列表
   * @param: inParam
   * @return: List<QryCommentsODTo>
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    @RequestMapping(value = "/qryComments", method = RequestMethod.GET)
    @ApiOperation(value = "ICommentApiService.qryComments", notes = "列表查询接口 - zhoulk")
    List<QryCommentsODTo> qryComments(@RequestBody QryCommentsIDTo inParam);

     /** 
   * @Function: com.teemor.blog.service.ICommentService.updCommentById
   * @Description: 根据ID更新
   * @param: inParam
   * @return: 
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    @RequestMapping(value = "/updComment", method = RequestMethod.PUT)
    @ApiOperation(value = "ICommentApiService.updComment", notes = "根据主键更新接口 - zhoulk")
    void updComment(@RequestBody UpdCommentIDTo inParam);

     /** 
   * @Function: com.teemor.blog.service.ICommentService.addComment
   * @Description: 新增接口
   * @param: inParam
   * @return: 
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    @RequestMapping(value = "addComment", method = RequestMethod.POST)
    @ApiOperation(value = "ICommentApiService.updComment", notes = "新增接口 - zhoulk")
    void addComment(@RequestBody AddCommentIDTo inParam);
}